//
//  KZSeekScrollView.h
//  lg_zhinengbeikao_english
//
//  Created by 朱凯 on 2018/12/28.
//  Copyright © 2018 zhukai. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KZSeekScrollView;

@protocol KZSeekScrollViewDataSource

@required
- (UIView *)seekScrollView:(KZSeekScrollView *)scroll viewAtIndex:(NSInteger)index;

@end

@interface KZSeekScrollView : UIScrollView <UIScrollViewDelegate>

@property (nonatomic, weak) id<KZSeekScrollViewDataSource> dataSource;

@property (nonatomic, assign) NSInteger maxCount;
@property (nonatomic, assign) NSInteger currentIndex;

@property (nonatomic, strong) NSMutableDictionary<NSString *, UIView *> *itemViews;

- (void)seekToItemAtIndex:(NSInteger)index;
@end
